home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 351-375 / disk_351 / pdc / libsrc.lzh / LibSrc / SysIO / ctype.c < prev    next >
Text File  |  1990-04-07  |  4KB  |  101 lines

  1. /*
  2.  * Libraries and headers for PDC release 3.3 (C) 1989 Lionel Hummel.
  3.  * PDC Software Distribution (C) 1989 Lionel Hummel and Paul Petersen.
  4.  * PDC I/O Library (C) 1987 by J.A. Lydiatt.
  5.  *
  6.  * This code is freely redistributable upon the conditions that this 
  7.  * notice remains intact and that modified versions of this file not
  8.  * be included as part of the PDC Software Distribution without the
  9.  * express consent of the copyright holders.  No warrantee of any
  10.  * kind is provided with this code.  For further information, contact:
  11.  *
  12.  *  PDC Software Distribution    Internet:                     BIX:
  13.  *  P.O. Box 4006             or hummel@cs.uiuc.edu            lhummel
  14.  *  Urbana, IL  61801-8801       petersen@uicsrd.csrd.uiuc.edu
  15.  */
  16.  
  17. /*
  18.  * used in isalpha(), isupper(), islower(), and elsewhere in ctype.h
  19.  *
  20.  * Here are the defines responsible for forming the individual masks:
  21.  *
  22.  *      #define _UPPER       (0x01)
  23.  *      #define _LOWER       (0x02)
  24.  *      #define _HEXIT       (0x04)
  25.  *      #define _DIGIT       (0x08)
  26.  *      #define _SPACE       (0x10)
  27.  *      #define _CNTRL       (0x20)
  28.  *      #define _PUNCT       (0x40)
  29.  *      #define _OCTIT       (0x80)
  30.  */ 
  31.  
  32. char _ctype[256] = {
  33. 0x20,    0x20,    0x20,    0x20,    /*    NUL    SOH    STX    ETX    */
  34. 0x20,    0x20,    0x20,    0x20,    /*    EOT    ENQ    ACK    BEL    */
  35. 0x20,    0x30,    0x30,    0x30,    /*    BS    HT    LF    VT    */
  36. 0x30,    0x30,    0x20,    0x20,    /*    FF    CR    SO    SI    */
  37. 0x20,    0x20,    0x20,    0x20,    /*    DLE    DC1    DC2    DC3    */
  38. 0x20,    0x20,    0x20,    0x20,    /*    DC4    NAK    SYN    ETB    */
  39. 0x20,    0x20,    0x20,    0x20,    /*    CAN    EM    SUB    ESC    */
  40. 0x20,    0x20,    0x20,    0x20,    /*    FS    GS    RS    US    */
  41. 0x90,    0x40,    0x40,    0x40,    /*    SP    !    "    #    */
  42. 0x40,    0x40,    0x40,    0x40,    /*    $    %    &    '    */
  43. 0x40,    0x40,    0x40,    0x40,    /*    (    )    *    +    */
  44. 0x40,    0x40,    0x40,    0x40,    /*    ,    -    .    /    */
  45. 0x0C,    0x0C,    0x0C,    0x0C,    /*    0    1    2    3    */
  46. 0x0C,    0x0C,    0x0C,    0x0C,    /*    4    5    6    7    */
  47. 0x0C,    0x0C,    0x40,    0x40,    /*    8    9    :    ;    */
  48. 0x40,    0x40,    0x40,    0x40,    /*    <    =    >    ?    */
  49. 0x40,    0x05,    0x05,    0x05,    /*    @    A    B    C    */
  50. 0x05,    0x05,    0x05,    0x01,    /*    D    E    F    G    */
  51. 0x01,    0x01,    0x01,    0x01,    /*    H    I    J    K    */
  52. 0x01,    0x01,    0x01,    0x01,    /*    L    M    N    O    */
  53. 0x01,    0x01,    0x01,    0x01,    /*    P    Q    R    S    */
  54. 0x01,    0x01,    0x01,    0x01,    /*    T    U    V    W    */
  55. 0x01,    0x01,    0x01,    0x40,    /*    X    Y    Z    [    */
  56. 0x40,    0x40,    0x40,    0x40,    /*    \    ]    ^    _    */
  57. 0x40,    0x06,    0x06,    0x06,    /*    `    a    b    c    */
  58. 0x06,    0x06,    0x06,    0x02,    /*    d    e    f    g    */
  59. 0x02,    0x02,    0x02,    0x02,    /*    h    i    j    k    */
  60. 0x02,    0x02,    0x02,    0x02,    /*    l    m    n    o    */
  61. 0x02,    0x02,    0x02,    0x02,    /*    p    q    r    s    */
  62. 0x02,    0x02,    0x02,    0x02,    /*    t    u    v    w    */
  63. 0x02,    0x02,    0x02,    0x40,    /*    x    y    z    {    */
  64. 0x40,    0x40,    0x40,    0x20,    /*    |    }    ~    DEL    */
  65.  
  66. /* non-ASCII values from the International Character Code follow:     */
  67.  
  68. 0x20,    0x20,    0x20,    0x20,    /*        */
  69. 0x20,    0x20,    0x20,    0x20,    /*        */
  70. 0x20,    0x20,    0x20,    0x20,    /*        */
  71. 0x20,    0x20,    0x20,    0x20,    /*        */
  72. 0x20,    0x20,    0x20,    0x20,    /*        */
  73. 0x20,    0x20,    0x20,    0x20,    /*        */
  74. 0x20,    0x20,    0x20,    0x20,    /*        */
  75. 0x20,    0x20,    0x20,    0x20,    /*        */
  76. 0x00,    0x00,    0x00,    0x00,    /*        */
  77. 0x00,    0x00,    0x00,    0x00,    /*        */
  78. 0x00,    0x00,    0x00,    0x00,    /*        */
  79. 0x00,    0x00,    0x00,    0x00,    /*        */
  80. 0x00,    0x00,    0x00,    0x00,    /*        */
  81. 0x00,    0x00,    0x00,    0x00,    /*        */
  82. 0x00,    0x00,    0x00,    0x00,    /*        */
  83. 0x00,    0x00,    0x00,    0x00,    /*        */
  84. 0x00,    0x00,    0x00,    0x00,    /*        */
  85. 0x00,    0x00,    0x00,    0x00,    /*        */
  86. 0x00,    0x00,    0x00,    0x00,    /*        */
  87. 0x00,    0x00,    0x00,    0x00,    /*        */
  88. 0x00,    0x00,    0x00,    0x00,    /*        */
  89. 0x00,    0x00,    0x00,    0x00,    /*        */
  90. 0x00,    0x00,    0x00,    0x00,    /*        */
  91. 0x00,    0x00,    0x00,    0x00,    /*        */
  92. 0x00,    0x00,    0x00,    0x00,    /*        */
  93. 0x00,    0x00,    0x00,    0x00,    /*        */
  94. 0x00,    0x00,    0x00,    0x00,    /*        */
  95. 0x00,    0x00,    0x00,    0x00,    /*        */
  96. 0x00,    0x00,    0x00,    0x00,    /*        */
  97. 0x00,    0x00,    0x00,    0x00,    /*        */
  98. 0x00,    0x00,    0x00,    0x00,    /*        */
  99. 0x00,    0x00,    0x00,    0x00,    /*        */
  100. } ;
  101.